home *** CD-ROM | disk | FTP | other *** search
- on comet1
- set a to random(10)
- if a = 1 then
- puppetSound("COMET.AIF")
- updateStage()
- else
- if a = 2 then
- puppetSound("COMET2.AIF")
- updateStage()
- else
- exit
- end if
- end if
- puppetSprite(8, 1)
- set xloc to random(640)
- set yloc to 0
- set the locH of sprite 8 to xloc
- set the locV of sprite 8 to yloc
- set vector to random(80)
- set Ncolor to random(16)
- set the foreColor of sprite 8 to Ncolor
- repeat with r = 0 to vector
- set xloc to xloc + (xloc / vector)
- set yloc to r
- set the locH of sprite 8 to xloc
- set the locV of sprite 8 to yloc
- updateStage()
- end repeat
- set the locV of sprite 8 to 100
- updateStage()
- puppetSprite(8, 0)
- end
-
- on comet2
- set a to random(10)
- if a = 1 then
- puppetSound("COMET.AIF")
- updateStage()
- else
- if a = 2 then
- puppetSound("COMET2.AIF")
- updateStage()
- else
- exit
- end if
- end if
- puppetSprite(9, 1)
- set xloc to random(640)
- set yloc to 0
- set the locH of sprite 9 to xloc
- set the locV of sprite 9 to yloc
- set vector to random(80)
- set Ncolor to random(16)
- set the foreColor of sprite 9 to Ncolor
- repeat with r = 0 to vector
- set xloc to xloc - (xloc / vector)
- set yloc to r
- set the locH of sprite 9 to xloc
- set the locV of sprite 9 to yloc
- updateStage()
- end repeat
- set the locV of sprite 9 to 100
- updateStage()
- puppetSprite(9, 0)
- end
-